Skip to content

[chore] Enforce copyright headers across Python and Rust sources - #227

Merged
0oshowero0 merged 1 commit into
Ascend:mainfrom
0oshowero0:fix/license-headers
Nov 26, 2026
Merged

0oshowero0 merged 1 commit into
Ascend:mainfrom
0oshowero0:fix/license-headers

Conversation

@0oshowero0

Copy link
Copy Markdown
Collaborator

Summary

Unify repository-wide copyright headers and tighten tests/sanity/check_license.py to require both copyright lines.

Changes

  • Add the missing Huawei Technologies Co., Ltd. All Rights Reserved. copyright header to 24 existing .py and .rs files (crates/controller*, transfer_queue/rust_controller.py, transfer_queue/utils/mooncake_utils.py, tests/*, and tutorial/07–10), preserving existing third-party attribution notices.
  • Tighten tests/sanity/check_license.py from OR matching to AND matching across both Huawei Technologies Co., Ltd. and The TransferQueue Team, reporting any missing copyright owner explicitly.

Validation

  • python3 tests/sanity/check_license.py --directories . passes across all 127 .py and .rs files.
  • Verified negative cases (files carrying only one of the two headers fail with an explicit missing-owner message).
  • ruff format --check ., ruff check ., mypy --no-site-packages transfer_queue, and check_docstrings.py pass.

- Add missing Huawei copyright lines to 24 Python and Rust source files so all 121 repository source files carry both Huawei Technologies Co., Ltd. and The TransferQueue Team headers

- Tighten tests/sanity/check_license.py from OR to AND and report missing copyright owners explicitly

Signed-off-by: 0oshowero0 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-26T04:15:33.948421Z d5df47f PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@0oshowero0
0oshowero0 merged commit 05504a1 into Ascend:main Nov 26, 2026
16 checks passed
@0oshowero0
0oshowero0 deleted the fix/license-headers branch November 26, 2026 04:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant